package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：wanxianyi
 * 时间：2018/3/29.
 * 包名：com.xintonghua.bussiness.bean
 */

public class StaffManagerBean implements Parcelable {

    /**
     * positionName : 美容
     * img : ../../img/upload/hy-upload-product1_03.jpg
     * phone : 13065454455
     * id : 2
     * userName : 小张
     */

    private String positionName;
    private String img;
    private String phone;
    private int id;
    private String userName;

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.positionName);
        dest.writeString(this.img);
        dest.writeString(this.phone);
        dest.writeInt(this.id);
        dest.writeString(this.userName);
    }

    public StaffManagerBean() {
    }

    protected StaffManagerBean(Parcel in) {
        this.positionName = in.readString();
        this.img = in.readString();
        this.phone = in.readString();
        this.id = in.readInt();
        this.userName = in.readString();
    }

    public static final Parcelable.Creator<StaffManagerBean> CREATOR = new Parcelable.Creator<StaffManagerBean>() {
        @Override
        public StaffManagerBean createFromParcel(Parcel source) {
            return new StaffManagerBean(source);
        }

        @Override
        public StaffManagerBean[] newArray(int size) {
            return new StaffManagerBean[size];
        }
    };
}
